package com.mdb.open.trade.service.product;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.mdb.bc.database.mybatisplus.SuperService;
import com.mdb.open.trade.common.MdbDataSource;
import com.mdb.open.trade.domain.po.product.LimitInfo;
import com.mdb.open.trade.mapper.product.LimitInfoMapper;
import org.springframework.stereotype.Service;

/**
 * 类描述：
 *  额度信息表 服务类
 *
 * @author liuyi
 * @date 2019-07-08
 */
@Service
@DS(MdbDataSource.PRODUCT)
public class LimitInfoService extends SuperService<LimitInfoMapper, LimitInfo> {

    public LimitInfo getByLimitNo(String limitNo) {
        return this.baseMapper.selectOne(new LambdaQueryWrapper<LimitInfo>().eq(LimitInfo::getLimitNo, limitNo));
    }
}
